package com.bto.leasetest.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@NoArgsConstructor
public class PowerSellOlFIleBody extends RequestBase<PowerSellOlFIleBody> {

    private PrjProject prjProject;
    private List<PrjProjectLeaseItem> prjProjectLeaseItemList;
    private FinanceProjectFileInfoDto financeProjectFileInfoDto;

    @NoArgsConstructor
    @Accessors(chain = true)
    @Data
    public static class PrjProject {
        private String partnersContractNumber;
    }

    @NoArgsConstructor
    @Accessors(chain = true)
    @Data
    public static class FinanceProjectFileInfoDto {
        private String keyType;
        private String businessKey;
        private List<FileList> fileList;

        @NoArgsConstructor
        @Accessors(chain = true)
        @Data
        public static class FileList {
            private String fileCode;
            private String fileName;
            private String fileAddress;
        }
    }

    @NoArgsConstructor
    @Accessors(chain = true)
    @Data
    public static class PrjProjectLeaseItem {
        private String partnersLeaseItemId;
        private String productModel;
        private String inverterNumber;
        private String addressConsistent;
        private String electricProvinceCode;
        private String electricCityCode;
        private String electricAreaCode;
        private String electricAddress;
    }
}
